<?php

/**
 * Description of SearchUser
 *
 * @author    Mon Zafra <monzee at gmail>
 * @copyright (c)2009 Mon Zafra
 * @license   http://monzee.wordpress.com/license New BSD
 * @version   $Id: UserSearch.php 38 2009-02-18 17:12:39Z monzee $
 */
class Admin_Form_UserSearch extends Zend_Form
{
    public function init()
    {
        $this->setMethod('post')
            ->setDisableLoadDefaultDecorators(true)

            ->addElement('select', 'criteria', array(
                'label' => 'Search field', 
                'multiOptions' => array('username', 'email'),))

            ->addElement('text', 'query', array(
                'label' => 'Query string', 'class' => 'text',))

            ->addElement('submit', 'search', array(
                'label' => 'Search', 'ignore' => true,))
        ;
    }

}
